package com.winner.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

/**
 *
 * 把yml配置文件的读取成一个bean, 也可以用@value注解
 *
 * @Value("${spring.redis.sentinel.nodes}")
 * private List<String> sentinelNodes;
 *
 * @Author wangxinle5
 * @since 2022-12-15
 */
@Data
@Configuration
@ConfigurationProperties(
        prefix = "spring.redis.sentinel"
)
public class RedisSentinelConfigProperties {

    private Set<String> nodes;

}
